<?php
include 'SimplePie.php';
class IndexController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
//         echo "adadad";
    }

    /**
     * recieves new signup information 
     *
     *
     */
    public function signupAction()
    {
        // action body
       new SimplePie();
    }

    public function pubsubTestAction()
    {
    	$this->_helper->Layout->disableLayout();
    	$storage = new Zend_Feed_Pubsubhubbub_Model_Subscription;
    	
    	$subscriber = new Zend_Feed_Pubsubhubbub_Subscriber;
    	$subscriber->setStorage($storage);
     	$subscriber->addHubUrl('http://pubsubhubbub.appspot.com/');
//    	$subscriber->addHubUrl('http://superfeedr.com/hubbub');
    	
     	$subscriber->setTopicUrl('http://testsitepahan.blogspot.com/feeds/posts/default');
//     	$subscriber->setTopicUrl('http://blog.pahans.com/feed/');
    	$subscriber->setCallbackUrl('http://'.$_SERVER['SERVER_NAME'].'/callback');
    	$subscriber->subscribeAll();

    }

}







